Fix docdata CC picker

- remove logic from the view and move to the controller
- fix docdata cc picker so that it works when default cc is used