trying to add event support to ensure page is loaded before parsing