move view-sample to index