improved templates, and made responses send both html and plaintext