Improved HTML/Flask formatting