updating bar for status bar