fix destroy function to revert the select id and name back