update activities first run and upgrade procedure