updated session controller