ajax form element sometimes triggers submit
There is a quirk in the AJAX form api which causes the last button on the form to be submitted under certain circumstances.  Without seeing all of your code, it would be difficult to isolate the problem.