main.js: action buttons emit ajax events, not the form