fixed bug where AddItemViewController would be popped before CoreData could save context