Improved communication between webclient and server