migrate main activity