remove all events before registering new events