move templates into a templates folder and update api calls to use local host rather than heroku