connected_buttons:
added possibility to set custom events