voting and results functionality added