fixed back button behavior