Added navigation click detection in controller and made the navbar static