changes the extension to handle uses cases for getting out of 'node-selection mode'