updated join and leave functionality in search results