Created a view for the index and show actions.