AUI-1646 Attach events when set a new layout