Fixed ajax for update and delete trips functions