created navbar directive to replace controller