Fixes confirm box showing when form has been successfully saved