move currentBuffer to tabsManager.