completes the basic layout of the template