FIX for issue 1036, restore UI parameters from cookie

The inconsistent UI behaviour (#1036) was fixed by properly restoring the parameters from the cookie. The issue is no longer reproducible and submissions_controller_test still passes.