changed day controller to return dates