implement delay setting switch