Move popup menu from doc_c.py to doc_base.py