support for automatically creating actions for buttons