made events sortable