Refactoring PHP in "view" core module.
Old features for debug were added.