added restart ajax function