refactored the html page