fix the effect of menu items, fix crash made by packagemanager, fix some threads