redefining tabs and handling domains