- refactored the panel title and statusbar update code