- refactors interraction with session from controllers and views