fix some bugs in search, set check box in share