Create a modal window, it loads data via an ajax request, edit data, click save, also using ajax, write the changes, close the modal window.
To change the page displayed immediately after editing, you need to redo the display so via ajax, or just after saving, reload the page