refactored template structure, enabled basic navigation bar functionality