Adding the session and working all buttons