use WindowManager toggle API for script-manager