Added a progress dialog to the getCapabilities request and added an alert dialog for when the request fails.