updated controller and sidebar