refactors css styles