created max width for layout and set layout margin to 0,auto;