setting status bar states