made filter to sort display by dates