Fix appdelegate code to use navcontroller, and get the main xib to load.