set up sessions controller and custom routes