updateds to flask template