improve ui, fix a minor bug, add new utilities