added the close_on_body_click option to togglebutton