Add toggle function for frontend script via dbus