swapView method to fix Zombie Problem