updated panel/panel_bar to comply with the newest version of BAR