added layout for contact and composition