Add custom buttons option

Allows adding custom buttons to trigger internal functions or external
handlers.