add frontend trigger turn on and off feature