added check for click created tab