fixed the back button problem