Fixed error where clicking many times on submit buttons submitted multiple points