Add ajax to add/update actions