modified some detail of index and view