use onclick so we know which element was selected