solve input focus problem