Added onclick function call on submit buttons.