theme: added a style def for code tag
index: initialized topic class now
topic: took out an unnecessary check
index: abuse the topic class from now on