fixed the topic space issue and date sorting