used typeof in forwardpagehandler