refactored styles into css