refactored html template and css