fix ajax destroy and implement friendly_id