added surveys= Survey.all in index.rb