Add date filtering capability and rearrange the renatls api controller according to the new inmplementation.