set up framework for progress dialog(to be moved to background and not to block the content)