fixed ajax for item create and destroy