Added support for reopening tabs.