new function to show edits graph