add cancel button and disable back button