implemented first example - not working - for a custom panel pane