Moved add/remove observer to viewDidLoad/dealloc to fix a crashing bug when canceling back-getsture.