edit m_p_m page and generation test function