intelligent layout