updated destroy and creating ajax