changes to session controller