finished basic function, try to make delay between ajax