added options for custom title and pane classes