added waitforpagetoload to waiter