added indexCtrl and few changes in routes n tests