Fixed big bug with item edit dialog

looks like the ok/cancel buttons have never actually worked for the item
edit dialog... should be fine now. this might explain people who are
getting generic items