added sessionscontroller and session helper methdos