Using local storage to stay on the same tab after edit