Fixed dialogs so they work, add and delete.