Refactored the index view.