update navbar directive