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

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