inferCSP policy display code moved to a function