minor fix - viewScalarFilter
adaptivity - first step (memory leaks, optimization needed)