setting up a session route and template