updating votes and topics
topic class