switch the view
delete index