ajax chapter edit