Minor bug fixes

Moved settings loading logic into constructor instead of having it in
windowLoaded event handler.