Moved all html formatting to template files.