update main activity ui