added invite and chat functionality onto search page