update main activity layout