createdted tab onclick