edit and update candidates