added session dict to view mixins