use same mechanism for adding charts and editors