integrate add/edit into modal dialog