Changing the way to set the theme in the profile.