added date filtering to orders