implemented remove events functionality