integrated remove function on click of X in toDoController