add session controller and modified