Using ui.value instead of input value