Added callback for custom button being pressed

I've added ability to implement custom blocks or selectors when custom buttons are pressed.
:+1: