Functioning delete/edit buttons