Set device type and project name when a new tab is created.