Adjusts layout