css refactoring to some elements