edit modal docs code to fix #8769