added 'edit' and 'destroy' features