Adding support for custom toolbar buttons.