revert statusbar code clean up