edit item now works fully