I also do a thin layer of silicone behind the foam I use. The yellow foam sticks to glass much better than the black foam too, but a layer of silicone will help ensure it stays attached long term.