functional add/edit import