Code review feedback.
Fire events before and after the link dialog is shown.

This allows us to convert the static links.
Remove unnecessary helper method.