bugfix on window/control destruction

inconsistency with window handler fixed

minor issue with tick-freq of the scalar control