made the topic search sidebar work on more pages