modify design of index and detail view.