improve getmoduleid and set globalsearch filter uid