Loading,add building controller function