Revert "use new and delete in view"

This reverts commit 0af2a97aa2de83d26dc02545acefa29799e8012f.
Revert "Debug"

This reverts commit 11cebc9edc19a90c5ab5e56b05ced1b8e5a0adff.