added render_template to import so it would actually work correctly