cancel default when turning off onenter event
make onenter false on page transition
Initialise onenter as false
Removed redundant scope
reset view when showing homepage
removed tap event
Better styling for smaller screens