add some buffer switch, tab switch