Change post method to ajax, delay 10s each time