Tap on the Habitat you wish to upgrade and then tap 'UPGRADE'.

Habitat Tokens and/or Gems are needed to upgrade Habitats.

Upgrading Habitats will increase its dragon occupancy, increase its Gold production limit, and also give you XP to increase your player level.

You may also notice some cool visual changes to your Habitats as they get upgraded.