added missing listener for hosted mode