Wrap prefs screen logic into a class, and fix possible syncing issue
Rename loadSettings to getSettings, and formatting inconsistency