add address class, some changes in the regController