Both these are well known titles and the latter is famous name of the Imam; it implies the ruler of the age appointed by the Almighty Allah. Husain bin Hamadan has narrated from Rayyan bin Sult that he heard Imam Ali Reza (a.s.) say: The Qaaem Mahdi is the son of my grandson, Hasan.