Allow for custom header buttons and custom functions declared in the constructor