[FEATURE] a bit of refactoring of PhpView