refactor topic row out to remove duplicate template code, fix group chat mention pat