add tab switching effect