'allowsClose' property was not being used