add $this to variables in View file