Added async task to main activity, added alertdialog class