convert index to generic view