Extracted event handler  to method.