fixed navigation bug on submitting page (when restore state is called)