got edit and delete functionality