* Fixed External Links to check the dialog by id instead of class
 * Close dialog each time anything is done in external links