added regex to match theme, and cookies to save theme