updating resource model template