Updating edit buttons