Refactoring of css styling