The solution was simply to take the protocol outside the formPanel and use "protocol.options.url = newUrl;", thanks willigogs for support