migrated functionality to Spreadsheet::getSelectedID