fixing a couple of little issues related to action, submit(), and adding diagnostics