Add ajax to edit page