Updated index erb and index controller