Refactor: moved todo list into a view