add api for votes