Creating nested toolpalette