Removing union query to old tab functionality