refactored the html of index page