working on edit and delete