LPS-44341 Fixing wrong window state, also fixing duplicate variable
LPS-44341 Better to hide first
LPS-44341 Missing semicolon
LPS-44341 Apply the same on the other similar staging screen + missing semicolons here as well
LPS-44341 Since order matters, add a line break