refactored todo example into List and Item views