added a tag new tab functionality