changed to attached properties, toggle buttons