Smarter homepage view
Close modals when navigating to new page