Remove unnecessary constructor for ContentPane
Add cancelFunc parameter for confirm dialog