That's completely normal for male bettas. They are the caretakers of their young, and he's just preparing his bubble nest for the eggs a female would drop to be fertilized. No need to worry. Sounds like he has quite the impressive bubble nest though.
-----
Phishie
Site Coordinator

"An ounce of prevention is worth a pound of cure."