Remove old layout and create a flexible box layout instead.