added community joining functionaliyt