set up the sessions controller