fixed addToggle function to reflect on or off state of Toggle added