Refined click event on all submit buttons