added controller for navbar and side bar