headliner installation instructions

I have a question: do you glue the front and rear edges or staple like the factory. If it is staple, what type of stapler do you use, if it is glue, what glue?