add days argument to sample controller -> retrieve data from the last x days