refactor html and css and add comments