some minor refactoring and changed the api of loadFromUrl to take an options object rather than just a url string
use the link text as the dialog title