Added tab-related functions for Mac