hide status bar and set progress bar.