adding ajax for voting