Fixed getData method

- Renamed `getInputControlsByName` to `getInputControls` which make
`name` parameter optional
- Used `getInputControls` to collect data