script for dashboard