divide index.ejs into sections

- divide index.ejs into 3 files: index.ejs, item_view_panel.ejs and
list_view_panel.ejs to reduce the complexity