Changed HTML files To PHP and TPL