Fixing incorrect usage of the web service, and moving AlertDialogs to onCancelled