script for loading day trends