Added focusOut method