got to set up proper events in the beginning