Update Show / Hide Window action depending on state of window