Fixed some bugs. When a new item is added, no clicks are needed to edit its name.