added edit candidate functions