Did you check all 3 temperature zones with either a Digital Probe Thermometer or a Temperature Gun after you set up his basking bulb and his UVB tube in the new enclosure, to make sure that all 3 zones are within the correct ranges?
And even if it's the exact same size of tank/enclosure, if you went from a glass tank to a wooden enclosure that's the same size, generally you'll need to actually go down in wattage of bright white basking bulb, even if you went from a smaller glass tank to a larger wooden enclosure, the temperatures (you would think a larger enclosure would need a higher wattage of basking bulb to keep the temperatures within the correct ranges) tend to be held so much better in a wooden enclosure than in a glass tank with a mesh lid, that a lot of people are shocked at how high the temperatures are in the larger, wooden enclosure. So please, make sure to check his Basking Spot Surface Temperature (between 105-110 for a baby/juvenile and between 100-105 for an adult of a year or older), his Hot Side Ambient (air) Temperature (between 88-93 maximum), and his Cool Side Ambient (air) Temperature (between 75-80 maximum), with either a Digital Probe Thermometer or a Temperature Gun, and do not rely upon a stick-on thermometer, as they are very inaccurate and you cannot measure his Basking Spot Temperature with one at all, stick-on thermometers only check Ambient (air) temperatures.
****** I've seen this happen before when people move from a glass tank to a larger, wooden enclosure, and they set up the lighting exactly the same as they had it on the smaller glass tank, thinking that the temperatures would actually go down, but in fact because the wood enclosure is so much more insulating than the glass was, and because there's no mesh lid for the rising heat to escape through, the larger wooden tank end up being way hotter than the glass tank every was, sometimes well over the 110 degree maximum temperature that the high temp in a bearded dragon's tank should be...that could very well be why he's glass surfing and wants to get out!