changed dismiss to close