add subscribe event handler