Updated handling of View variables for elements when parsed