replace html with php and more updates