renamed the event handler to prevent it from being called twice