Made the layout changes managed by the activity.