created join functionality in topic page and tests are added