document registerAction method