You are using the same controller for two different views. When loading the first view, the controller tries to get an element with the id "idcolumn", which is not available on view1.
You should better use a different controller for each view.
I can't exactly tell, if this fixes your problem as I'm getting a lot of errors cause of the invalid url. But when I remove the controller from the first view, the dataset is set correctly to the VizFrame