back button logic

pressing back button on home page will make the app exit