Add new server switched from JS to jQuery UI Dialog