redesign prefs widget and some fixes