update todos
enable editing if owner
fix fresh document to string, not array
clean up after setting selection