Clean everything back off and really get it dry. Try using brake clean to really clean it. The on the ends us a weatherstrip glue and let them set up. They should be dry and in place before you try to install pan. Some of the Permatex glues are all so good to use. Just use one that sets up and drys in a short time for the end pieces. For the sides, silicon or you choice of glues. Joe