*added Jonathan's new preferences dialog (needs further testing)