models and session controller