Tab opening and communication between scripts