Fixed cancel navigation for the Add and Edit view controllers.