complete the topic vote fuction