updated prevRoute for date from route. Date is currently returning null