fix viewcontroller add issue