Before applying new styles