add scrolloff, TabToggle function