add vote result detail function