Used text/html instead of text/plain in main.html