updates to events and models with next and previous for a query