Changed selectTodoItem to only manage item selection and returning the action to take on a selected item.