Adding new HTML code and some minor php bug fixes