add event refined - if there is no input, the event will not be added