Changed HTML to PHP
Trimming Templates to PHP formatting