Preparing Layout