updates the status bar