Fixes to perform form reset after submission