remove repetition in index.erb