mobile back button handling fix