updated panelDemo to reflect latest changes