created indexCtrl and added to Model for index
Created indexCtrl and view index