Adding support for button events and configuration screen