add preference to ui