added the js alert/redirection for adding server