added sendEvent function to startupdashboard.js