Assign "mainaction" class to "default" buttons in dialogs