Refactoring model view relationship for sessions