Re-did Settings code-behind

among other things