fixed bug with hostname and domain in ui