ajax for create and destory done