hierarchicallayout example working