trying to make back button work