working version with Join and Leave links working