document enable method