added searching by date toggle. defaults to false