better detection of document complete + form interaction