add ajax for data traffic