Calling willMoveParentViewController before removeFromParentViewControll...

Adding WillMoveToParentViewController before calling removeFromParentViewController as mentioned in method's (WillMoveToParentViewController)documentation.