ajax writing/deleting paragraph management