fixed syntax error in doc_id
changed loadPage to actually load the page back