adds edit, delete and update functionality