Added code that directs the back button destinations