I want to implement the device back button on the Android device. But when open the modal and press the back button it exits the app. Same for other pages. I want to exit the app when the tabToot page is set to one. Can anyone tell me what are the best practices for implementing this?