refactoring: separating php from html and css