applied the changes to the layout