Fix:Object [object Object] has no method 'addSelectionButtons', Update: toggle selection code