layout auto choose on parent select