fixed a syntax error in handleFocus function