refactored css to remove css from html file