only run dashboard code on dashboard page