fix bug where sorting and filtering events were being raised after rendering