update the activity layout