update determines which element is selected
update determines which element is selected