fix xredirect in Cockpit form