pdf charts in a separate function. adding filters to charts. header updates