adding date filter functionality to events plugin