checking country without page reload