add logic to scan page and process data. web handlers and browser popup communicate through the event page.