added join button functionality