Added buffer into context class and added CmdSetCurrentTab