Adjust layout of main