After appending new row to table lose handler

After appending new row to table lose handler

Hello,

I've got a problem when I append a row to the table, the link in new <td> in probably not in jQuery Collection and I cant use jquery click or any action on it, just href go to url.

Maybe it will be more clear on my code :)
  1.  $('table tr td a').each(function() {
  2.         var $dialog = $('<div></div>').append($loading.clone());
  3.         var $link = $(this).one('click', function() {

  4.             $dialog.load($link.attr('href')).dialog({               
  5.                 (...some code...)
  6.             });
  7.             $link.click(function() {
  8.                     $dialog.dialog('open');
  9.                     return false;
  10.             });
  11.             return false;
  12.         });
  13.     });
Above code open dialog when I click on the link i.e EDIT in every row in my table.

Now im tryin to add new row ie. like this:
  1. $('button#add').live('click',function() {
  2.                     $('table').append('<tr><td><a id="row170" href="news/edit/170.html">EDIT</a></td></tr>');                   
  3.                     return false;
  4.             });
Till now it works, but when I link on this link in the new row it just open href in browser instead of openin dialog.

How to fix it?

Thanks in advance:)