modify user interface in order to return a value.