adding ajax to edit post