Added callback for custom button being pressed

I've added ability to implement custom blocks or selectors when custom buttons are pressed.
The brackets here is redundant. (not a mistake, just about code-style)