Prepared the overall layout