made the destroy in ajx thing