updated edit and delete