added callback for custom button being pressed