made current_view_index much simpler, and updated docs