Add code to connect UI inputs to input values