Collect data from the UI