script for tab page: