added side bar as controllers/ funciton