updated to use panelbar