Added index and edit views.