Add Code to Handle an Event