refactored css and html