Better way to apply style