Added support for changing to a panel. Added extra calls to panelDidAppear to support when the first panel appears.