You can stop baked goods from sticking to baking trays by greasing the baking sheet. You can also line the baking sheet with parchment paper and avoid overcrowding your unbaked goods. Non stick trays are also available which prevent baked goods from sticking to the surface.