fix share ui code issue