upon saving, the div containing the links are turned into a dialog