modify session controller