cleaner session handling in view