make handler send all avatar info to ui thread

imporve code style