adjust the layouts