adding "Pane" to the exported constructor