templates setup, working on recreating the ajax calls