fixed part of edit/delete