create directive to navbar