update controller logic to look into views for erb files