Improve material's index

* add modal for the view of one material's index
* fix the view of material index