enabled a flag called 'delay_submit' so the submit is not immediatelly called on button click, if necessary