Allow for custom header buttons and custom functions declared in the constructor
Merge branch 'custom_buttons'