working on memory leaks and unit tests. One unit test failing for grid because items are not cleared properly yet.