added edit and delete functionality