adding in an event observer