conditional controlling display of the back button