add core data controller