Found out the problem with SwapViewControllers