Remove hard coded html from python file. Add render template helper method