Original sentence: To consolidate the position of Aybak, and attempting to satisfy their opponents in Syria and Baghdad, the Mamluks installed the 6-year-old al-malik Sharaf Muzafer al-Din Musa,   who was one of the Syrian branch of the Ayyubid family as a Sultan and announced that Aybak is merely a representative of the Abbasid Caliph in Baghdad
Edited sentence: To consolidate the position of Aybak, and attempting to satisfy their opponents in Syria and Baghdad, the Mamluks installed the 6-year-old al-malik Sharaf Muzafer al-Din Musa,  who was one of the Syrian branch of the Ayyubid family as a Sultan and announced that Aybak is merely a representative of the Abbasid Caliph in Baghdad