Add event handler. closes #4327