Add destroy and edit function