changed website to work with php templates