added the popup and progress bar and show the content of cmd