updated the layout and Index views