formatting
send full array with each ajax request