Added code to retrieve group list from the server