fix: move category selection to the controller.