Setting up master layout