add shareDialog method