Add the controller to handle requests to the multi-detail view and fix some bugs in the multiselection of the mainDetailGrid component refs #3788