turned index view into erb