update and switch theme