Fixes showing buttons in groups and handling button actions.