Modified index view to use render() shortcut function.