Add method for editing todos