Try/catch in order to find a htmlElement when we want to close a dialog used when insert manual routes. Detect the D of dynamic routes when we want to remove it.