Setting master layout