css styling and refactoring