Sessions and templates hooked up