attachLayout