delegate methods added for adding/editing todos