before theme change