working on controllers part for creating datacollection.