Reformat Layout to tablayout to optimize fragments and activities.