keep track of which todo is selected
add if statement to ensure not to display if model object not created