updated grid using div's new interfaces.