ensure popup X acts as cancel