change theme only if needed