added close functionality to the topic page
resolved the merge conflict in the tests