Added callback functionality to execute function passed to submit handlers