all the stuff in session helper to application controller