added switch for choosing between differnt domains; implementet input fields for ims-domain