add onload to check for server setting

this will trigger the server discovery if no server is found