Updated to get html text of opened tabs