Issue #2: refresh now performs tree reshake only when particular operations (backspace, enter) performed. Performance increased