Split out main from router. Separate header and menu view.
Close menu when navigating.
Remove generated templates.