delete the todo on undo. TODO: have a field to check the undo action
added undoStates to the component state because otherwise the action would need to call down into the store to get the undo states which didnt feel right
pass undoStates to action creator