fixing issue where all forms would submit at once