refactor css code