updated router and index to display model data (todos)