Edit object. Saving attributes with object