add viewDidAppear method.