app goes down by adding an todo after editinn todos