fixed the back button issue