Added event listeners for desired inputs to autocompute as the user types.