Extracted Templates

Extracted templates into templates.html and included them with php into the files, some feels changed from .html to .php