bugfix for stateMachine: buttons edit state name and delete node blinked when the mouse was pressed down