Added trends logging to popup