added functionality to the group profile and personal profile pages, querying very clunky in many places but with functionality as the goal, alright