Added callback for reatachning tab