popup inline javascript fix for ordering and css update for deleted rows