class for performance view, almost working, still bit buggy.