added script for tab.