Fix render_template to use base.html