swapped viewWillAppear and viewDidAppear