The prime ministership was held by a representative of the Umma Muhammad Ahmad Mahjub but the leader of the NUP Azhari was made president

Could you correct the punctuation please?
The prime ministership was held by a representative of the Umma, Muhammad Ahmad Mahjub, but the leader of the NUP, Azhari, was made president.