preferences control moved to preferencesdialog class