added js fix for dragging on toggle