Refactoring css of form control