implement Create and delete handler