add map for tab. so it can easily switch to different tabs.