added basic editing in detail flow using core data