Add idle detect for vision tutorial

Add idle detect for vision tutorial: when idle for several seconds, the
tutorial will repeat
Minor bug fix