init the index view, may change later