Add updateGlobalObjects after recieve the response from the server.