Pegboard is not a good idea. It could swell up and stick, and doesn't really keep moisture in the tank.

The two best options for glass tank lids are plexiglass and foil treating the screen top. Those are the tried and proven methods that get the best results thus far. I even have a picture tutorial on foil treating screen lids if you'd like.