Changed URL connection to asynchronous, modified to show activity indicator