Fix NPE in General UI Settings
- reorder load / unload of preferences
- reorder layout order