Create edit item method