add directive for navbar
(cherry picked from commit 37a628c)