Make api request when submitting votes