Fixed AllowButton to use updated constructor