create and delete by ajax