prototype for edit page with JSON communication