make the necessary changes for layout