Improved the switching of file tabs.