modified session controller file