refactored and modularized css