flag for auto tab switch
flag for auto scroll