set up use of templates and static files