created session controller