Adding progress dialog for async task and move the async task into

activity through inner class.