Added conditionals in templates calling render_view() for menu, to call a view named by location. Added todos for moving heavy function calls in recursive functions.