#8 Implemented custom home and back button behaviour