status bar update and bug fix