modified link dialog to have class adding