cleaned up index.html.erb and moved legend up