Added freeze on losing focus