Extract navbar into a directive