Added include for html template file and removed useless code