Fixed up template using flask