fix admin edit item functionality