buttons to contrrol data collection