mapped new tab, and switch between tabs
fixed error and supporting mac