added XMLHttpRequest on click