Allow to set preference in main app