refactored and cleaned the css