implemented the edit and delete button