edited mac's commit because it broke the return value from modal dialog

the item type was specifically requested, not quite ready to add to db
yet, and the integer for the code/key we'll figure out after..