changing how and when styles are applied