Set event handler after value is set
Not to call APIs if candidates are null