make function outside class starting with "PMA"; render HTML at once
Merge pull request #387 from xmujay/2332_xmujay

make function outside class starting with "PMA"; render HTML at once