finialy got edit buttons to work