modified index view (index.erb) to be form