setGlobalVars method to none static
modify ViewInterface