setting up master layout