add the off  method

add the off method that remove the event handler.