Adds layout.erb and removes duplicated HTML from index and edit.