RF-13270: split event handlers from AjaxProps and refactor them to AjaxEventsProps to allow reuse