Refactor css part