Fixed the bug where the Toolbox was not updated sometimes and the buttons look like they are disabled.
Added the toolbox 'updateEnableState' method to the 'selectCursorToolByGeometryType' method and changed from toolbox.validate() to toolbox.pack() in the 'buttonRemove' method.
This causes the toolbox to flicker once a new layer is selected but the strange behavior described above is gone.