refactor css definition