added a trigger when the view is changed. 

I added triggers when a view is changed