Is possible set a condition for the back button too?