works for ajax-created rows as well