better link dialog, fixes #45