If you want to transfer from the Company to your husband you should get the NOC from them for the transfer. If you cannot get the NOC you can cancel your visa, leave the country and ask your husband to apply for a family residence. I think you should go for the first option which is easier. You can still work with them if both you and them are ready.