Removed the observers during Dismiss, to avoid the memory leak