optimize and refactor css