Change pull data submit to ajax