Removed dead code from text_view.
Changed IndexView to use same calling sequence as the other views.