code for voting,add poll