When reinstalling the sunroof insert it into the front of the roof opening making sure that it is sitting in the appropriate guides on each side (red arrow) and fit the rear portion into the channel for the lifting arms.