updated session controller and helper