ajax call to submit poll