fix contextMenu into ui-lib and fix some bugs

fix contextMenu into ui-lib and fix some bugs