updated to make navbar use templating