added random intervals for the switch prompting