no need to pass in action since the button is passed- just do  action = button['formaction'] || native['action']