removing event properly.