add buttons and ajax save