CHANGED: implementationn for createItem and onDblClick to meet custom needs.