fix for  undefined index errors
move 'host' outside of this check
fix for update message appearing on same line.