Only render the regenerate under certain conditions.