working add edit item