grid refcator patch for ajax, thanks Niphlod