Modify the UI, move the operation to the menu items, fix some bugs.