fires when the views are switched in the component (regardless of the switching method)
some.attachEvent("onViewChange", function(){ //... some code here ... });