code changes for applying new theme.