added api call to toggle votes