improve hiding status bar and reduce flickers