Add a state and handle toggle (only work for the button, the job don't stop nor start on toggle