added api call in candidates ctrl