search + if/then/else for themes