added ajax save of data