just changed the htmls to erbs