portForm added
changed to ng-switch
buildForm to lease