Fix component add/change and delete dialogs

@justinvdm This functionality was there before we did the change to the new data format, so I just made it work again.