proper layout nesting