add a loading dialog in alldynamic
optimi the communication