Refactored css code