refactor prettyCheckbox