UI: Added the set & remove domain parameter under try block