moved code to fetch json into asynctask and animated the output