Emitting successfulSubmit last because following this, thie widget might well get destroyed...
TODO done
Cosmetic change