Moved openTab function from module to overlay