import groups function to groups page