Add global vars support in view