before theme changes