Move selection related operations into the new SelectionController.js