scroll to the top when a route is called, and implement the close() function for our view
small, minor tweaks