edit and delete candidate