added getIterator for cookie widget