added the toggle counter for widgets that allow multi instance