check theme before using