Refactor the navbar into its own directive