empty items are prevented from being added
cancelling new item also clears any current value in input:text
cancelling todo item reverts any changes to input:text