refactored the css and html