Added scroll listener, and progress dialog