fixing the host management ui and lots of other fixes