Fix button pressed events not showing up in the UI