Provided proper show/hide flag for close action