relocate verifyTheme into ThemeController