use ajax to save entries - part 1