Command fix

Fixed cookie argument for layout.createOrClose command