move when template publish status is refreshed to avoid loop