Moved the init code to loadView as it's never called when the view controller is loaded from a nib.