added progressBar and fixes in adapter