refactored view spec for 'index.html'