Added delegate messages viewWill/DidAppear and viewWill/DidDisappear.