update main activity